﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Left.aspx.cs" Inherits="GCEVideoMonitor.Manage.Left" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>无标题文档</title>
    <link href="/css/common.css" type="text/css" rel="Stylesheet" />
    <link href="/css/manage.css" type="text/css" rel="Stylesheet" />
    <link href="/css/menu_style.css" type="text/css" rel="stylesheet" />

    <script src="/js/jquery.js" type="text/javascript" language="javascript"></script>
    <script>

        if (!(window.parent != null && window.parent.document.body != null)) {
            window.location = "<%=AppKey.SiteKey.ManageDirectory %>" + "/frame.aspx";
        }
    </script>
    <script>
        $(document).ready(function() {

            $(".left .menu dd:not(dd:has(dl))").mouseover(function() {
                $(this).addClass("over");
            });
            $(".left .menu dd:not(dd:has(dl))").mouseout(function() {
                $(this).removeClass("over");
            });
            $(".shrink").click(function() {
                $(".left").toggle();
            });

            $(".left .menu dt").click(function() {
                if ($(this.parentNode).hasClass("slideDown")) {
                    $(this.parentNode).find("dd").not($.makeArray($(this.parentNode).find("dd dd"))).slideDown("fast", function() {
                        var cs = $(this.parentNode).attr("class").replace("slideDown", "")
                        $(this.parentNode).attr("class", cs)
                    });
                } else {

                    //                    alert($(this.parentNode).find(" :has(dl)").length);
                    //                    alert($(this.parentNode).find("dd").not($.makeArray($(this.parentNode).find("dd dd"))).length);
                    //alert($(this.parentNode).find("dd").not($(this.parentNode).find("dd:has(dl)").to).length);


                    $(this.parentNode).find("dd").not($.makeArray($(this.parentNode).find("dd dd"))).slideUp("fast", function() {
                        if (!$(this.parentNode).hasClass("slideDown")) {
                            var cs = $(this.parentNode).attr("class") + " slideDown";
                            $(this.parentNode).attr("class", cs)
                        }
                    });
                }
            }
            );
            $(".left a").each(function() {
                this.target = "mainFrame";
            });
        });
        
    </script>

    <style>
        html { overflow-y: auto !important; *overflow-y:scroll;scrollbar-face-color:#9EBFE8;scrollbar-shadow-color:#FFFFFF;scrollbar-highlight-color:#FFFFFF;scrollbar-3dlight-color:#9EBFE8;scrollbar-darkshadow-color:#9EBFE8;scrollbar-track-color:#FFFFFF;scrollbar-arrow-color:#FFFFFF}</style>
</head>
<body>
    <form id="form1" runat="server">
 
    <div class="left">
        <div class="tac_ menu ">
            <zf:ListView runat="server" ID="lvMenu">
                <LayoutTemplate>
                    <asp:PlaceHolder ID="itemPlaceHolder" runat="server"></asp:PlaceHolder>
                </LayoutTemplate>
                <ItemTemplate>
                    <dl class='<%# bool.Parse(Eval("M.Attribute('isExpand').Value").ToString())? "": "slideDown"  %> ' style='<%# (int)Eval("COUNT")>0?"": "display:none" %>'>
                        <dt style='<%# (int)Eval("COUNT")>0?"": "display:none" %>'><span class="fl_">
                            <%# Eval("M.Attribute('title').Value")%></span> <span>
                                <img src='/<%# Eval("M.Attribute('icon').Value")%>' /></span> </dt>
                        <asp:Repeater runat="server" DataSource='<%# Eval("L") %>'>
                            <ItemTemplate>
                                <dd>
                                    <a href='<%# Eval("Attribute('url').Value") %>'>
                                        <%# Eval("Attribute('title').Value") %></a>
                                </dd>
                            </ItemTemplate>
                        </asp:Repeater>
                    </dl>
                </ItemTemplate>
            </zf:ListView>
        </div>
    </div>
    </form>
   
</body>
</html>
